package org.chen.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("movie_upload_batch")
public class MovieUploadBatch extends Model<MovieUploadBatch> {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("batch_no")
    private String batchNo;
    @TableField("total_count")
    private Integer totalCount;
    @TableField("success_count")
    private Integer successCount;
    @TableField("fail_count")
    private Integer failCount;
    private String status;  // PROCESSING, COMPLETED, FAILED
    @TableField("content_position")
    private String contentPosition;
    @TableField("error_msg")
    private String errorMsg;
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
